package cn.shiro.shiroservice.moudle.db.controller.other;

import cn.shiro.shiroservice.common.utils.R;
import cn.shiro.shiroservice.moudle.db.abstracts.other.AbstractCoreDatabaseController;
import cn.shiro.shiroservice.moudle.db.service.BackupService;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * &#064;Time 2024 二月 星期五 10:51
 *
 * @author ShangGuan
 */
@RestController
@RequestMapping("/backup")
public class BackupController extends AbstractCoreDatabaseController {


    private BackupService backupService;

    @GetMapping("/tables")
    @RequiresAuthentication
    public R<String> tables(String path){
        return R.ok("备份完成");
    }

    @GetMapping("/tableAll")
    @RequiresAuthentication
    public R<String> tableAll(){
        return R.ok("备份完成");
    }

}
